<template>
  <div class="comic" >
    <div class="box">
      <div class="imgbox">
        <img :src="'https://images.weserv.nl/?url=' + img" />
      </div>
      <div class="one">
        <h1 class="name">{{ name }}</h1>
        <span class="label">{{ lable }}</span>
      </div>
      <div class="two">
        <div>{{ id }}</div>
        <div class="bottom">
          <span class="information"></span>
          <span>{{ num }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Comic",
  props: ["img", "name", "lable", "id", "num"],
};
</script>

<style lang="less" scoped>
.comic {
  width: 343px;
  height: 250px;
  margin: 17.5px auto;
  border-radius: 8px;
  // background-color: red;
  .box {
    .imgbox {
      height: 193px;
      img {
        width: 100%;
        border-radius: 5px;
      }
    }
    .one {
      margin-top: 5px;
      height: 28px;
      display: flex;
      align-items: center;
      .name {
        display: inline-block;
        font-weight: normal;
        font-size: 20px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 81%;
      }
      .label {
        color: #90959b;
        display: block;
        // width: 32px;
        height: 18px;
        text-align: center;
        background: rgba(192, 192, 192, 0.16);
        margin-left: 7px;
        border-radius: 3px;
      }
    }
    .two {
      height: 20px;
      margin-top: 5px;
      font-size: 14px;
      color: #999999;
      display: flex;
      justify-content: space-between;
      .bottom {
        display: flex;
        .information {
          width: 16px;
          height: 16px;
          display: inline-block;
          background: url();
        }
      }
    }
  }
}
</style>